import request from '@/utils/request'

// 查询设备定义列表
export function listEqu(query) {
  return request({
    url: 'fj/equ/list',
    method: 'get',
    params: query
  })
}
// equType(1=风机、2灯组) locationId
export function queryEqu(query) {
  return request({
    url: 'fj/equ/listByTunnel',
    method: 'get',
    params: query
  })
}
// 查询设备定义详细
export function getEqu(id) {
  return request({
    url: '/fj/equ/' + id,
    method: 'get'
  })
}

// 新增设备定义
export function addEqu(data) {
  return request({
    url: '/fj/equ',
    method: 'post',
    data: data
  })
}

// 修改设备定义
export function updateEqu(data) {
  return request({
    url: '/fj/equ',
    method: 'put',
    data: data
  })
}

// 删除设备定义
export function delEqu(id) {
  return request({
    url: '/fj/equ/' + id,
    method: 'delete'
  })
}


// export function operationLog(data) {
//   return request({
//     url: '/fj/operationLogList/' + id,
//     method: 'delete'
//   })
// }
